#include "Lists.h"
LIST L1, L2;
int main()
{
    int v1[] = {1, 2, 3, 4, 5}, v2[] = {6, 7, 8, 9, 10}, i;
    for (i = 0; i < 5; ++i)
        addToRight(v1[i], &L1);
    for (i = 0; i < 5; ++i)
        addToRight(v2[i], &L2);
    printf("Before concatenation:\n");
    printList(L1);
    printf("\n");
    printList(L2);
    printf("\n");
    printf("After concatenation:\n");
    concatenateLists(&L1, &L2);
    printList(L1);
    printf("\n");
    printList(L2);
    return 0;
}

